<?php

function __autoload($class_name) {
        include 'class.' . strtolower($class_name) . '.php';
}


class KanwilDao{
	
	public function getKanwil($kdkanwil){
		$db=Database::getInstance();
        $con=$db->getConnection(1);

        $query="SELECT * FROM t_kanwil WHERE kdkanwil='$kdkanwil'";

        $result=$con->prepare($query);
        $result->execute();

        if($result->rowCount()==1){
            return $result->fetch();
        }

        return false;
	}


}

class Kanwil{
	
	var $kdkanwil;
	var $nmkanwil;
}


?>